package com.example;

import java.net.InetSocketAddress;

public class ClientMain {

    public static void main(String[] args) throws Exception {
        LogPushUdpClient.getInstance().start();
        int i = 0;

        InetSocketAddress socketAddress = new InetSocketAddress("localhost", 2055);
        long start = System.currentTimeMillis();
        while (i < 1000000) {
            LogPushUdpClientHandler
                .sendMessage(new String("UdpServer"), socketAddress);
            i++;
        }
        long end = System.currentTimeMillis();

        System.out.println(end - start);
    }
}
